package com.company;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Main {

    public static void main(String[] args) throws ParseException {
	// write your code here
        method();
        method1();

        System.out.println("");
    }
    public static void method() throws ParseException {
       String date="2020-02-02";

       SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd");
        Date d=sdf.parse(date);
        System.out.println(d.getTime());
        System.out.println(d.getDate());
        System.out.println(d.getYear());
        System.out.println(d.getMonth()+1);
        System.out.println(sdf.format(new Date()));
    }
    public static void method1(){

    }

}
